package br.com.async.controller.log;

import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;

@Resource
public class LogController {
	
	private Result result;
	private LogComponent logComponent;
	
	public LogController(Result result, LogComponent logComponent) {
		this.result = result;
		this.logComponent = logComponent;
	}
	
	@Path("/logs")
	public void logPanel(){
		
		result.include("pageLog","ui-btn-active");
		result.include("list",logComponent.getListLog());
		
	}

}
